<?php

namespace App\Models;

class Platform extends Base
{
    /**
     * 账号（多对多关系）
     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
     */
    public function Account() {
        return $this->belongsToMany(Account::class)->using(AccountPlatform::class);
    }
    
    /**
     * 文案标题（一对多关系）
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function titles() {
        return $this->hasMany(PapperTitle::class);
    }
}
